import * as vscode from 'vscode';

export function getCompletionItems(): vscode.CompletionItem[] {
    const keywords = [
        'and', 'break', 'do', 'else', 'elseif', 'end', 'false', 'for',
        'function', 'goto', 'if', 'in', 'local', 'nil', 'not', 'or',
        'repeat', 'return', 'then', 'true', 'until', 'while'
    ];

    return keywords.map(keyword => {
        const item = new vscode.CompletionItem(keyword, vscode.CompletionItemKind.Keyword);
        item.insertText = new vscode.SnippetString(keyword);
        item.documentation = new vscode.MarkdownString(`\`${keyword}\` keyword`);
        return item;
    });
}
